package com.dwms.feign.declare;

import com.dwms.entity.PageResponse;
import com.dwms.entity.QueryRequest;
import com.dwms.entity.Result;
import com.dwms.entity.declare.cebInvt.request.CebInvtQueryRequest;
import com.dwms.entity.declare.cebInvt.request.CebInvtRequest;
import com.dwms.entity.declare.cebInvt.response.CebInvtResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName: CebInvtController
 * @Description: CebInvt
 * @Create 2025-09-15 23:08:20
 * @Author WH
 * @Since 1.0.0
**/
@FeignClient(name = "declare-server", path = "/cebInvt")
public interface CebInvtFeignClient {

    /**
     * 修改
     *
     * @param cebInvtRequest
     *          请求参数
     * @return
     */
    @PostMapping("/update")
    Result update(@RequestBody CebInvtRequest cebInvtRequest);
    

    /**
     * 分页查询
     *
     * @param query
     *          查询参数
     * @return
     */
    @PostMapping("/findPage")
    Result<PageResponse<CebInvtResponse>> findPage(@RequestBody CebInvtQueryRequest query);

    /**
     *  根据ID查询
     *
     * @param query
     *          参数
     * @return
     */
    @PostMapping("/findById")
    Result findById(@RequestBody QueryRequest query);

    /**
     * 申报
     * @param query
     * @return
     */
    @PostMapping("/declare")
    Result declare(@RequestBody QueryRequest query);
}
